package com.mvc4g.example.mockup.client;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.mvc4g.example.mockup.client.bean.AboutBean;
import com.mvc4g.example.mockup.client.bean.EmailBean;
import com.mvc4g.example.mockup.client.bean.LoginBean;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("mockup")
public interface MockUpService extends RemoteService {
	public void login(LoginBean login);
	
	public List<EmailBean> getEmails(String login);
	
	public String getContent(int id);
	
	public AboutBean getAbout();
	
	public static class Util {

		public static MockUpServiceAsync getInstance() {

			return GWT.create(MockUpService.class);
		}
	}
}
